home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Megahits 3
/
Megahits 3 (1994)(GTI - Rhein-Main-Soft)(DE)[!].iso
/
module
/
utilities
/
archives
/
mod2midi3.lha
/
Mod2Midi
/
source
/
smakefile
< prev
next >
Wrap
Makefile
|
1993-01-05
|
2KB
|
85 lines
MODNAME = mod2midi
VERSION = 1
REMOTE = V$(VERSION)mod2midi
LD_FILE = $(MODNAME)
LD_STRIP = $(MODNAME).strip
C_COMPILER = SC
C_COMPILER_OPTS = DATA=FAR PARM=STACK UCHAR
LINKER = Slink
LINKER_OPTS = PLAIN SWIDTH 16
LINKER_OPTS_STRIP = ND
C_SOURCES = AmigaWIN.c mod2midi.c
ASM_SOURCES =
OBJECTS = AmigaWIN.o mod2midi.o
STARTUP = LIB:c.o
LIBS = LIB:sc.lib LIB:scm.lib LIB:amiga.lib
##############################################################################
# Build the stripped load file...
#
#$(LD_STRIP): $(LD_FILE)
# $(LINKER) FROM $(LD_FILE) TO $(LD_STRIP) $(LINKER_OPTS_STRIP)
##############################################################################
# Build the load file...
#
$(LD_FILE): $(OBJECTS) $(LIBS)
$(LINKER) <with <
FROM $(STARTUP) $(OBJECTS) TO $(LD_FILE) LIB $(LIBS) $(LINKER_OPTS)
<
BumpRev $(VERSION) $(MODNAME)_rev
##############################################################################
# Default rules...
#
.c.o:
$(C_COMPILER) NOLINK $(C_COMPILER_OPTS) $*.c
.asm.o:
$(ASSEMBLER) $*.asm
##############################################################################
# All dependencies...
#
AmigaWIN.o: AmigaWIN.c
mod2midi.o: mod2midi.c $(MODNAME)_rev.h mod2midi_globals.h
##############################################################################
# Bump the version...
#
version:
@BumpRev $(VERSION) $(MODNAME)_rev
##############################################################################
# Delete all object files
#
clean:
@Delete \#?.(o|ld|strip|map)
##############################################################################
# Release the current build to the server...
#
internal:
@Delete $(REMOTE)/((\#?.(c|h|asm|i|ld|rev|doc|library))|lmkfile)
@Protect ((\#?.(c|h|asm|i|ld|rev|doc))|lmkfile|$(LD_STRIP)) +rd quiet
@Copy \#?.(strip|ld|doc|library) \#?_rev.\#? $(REMOTE)